package com.ohuang.jiaxiaotong;

import android.app.Application;

import com.example.myhttp.GsonInterface;
import com.example.myhttp.Ihttp;
import com.example.myhttp.OkHttpInterface;
import com.squareup.leakcanary.LeakCanary;

public class MyApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
//        if (LeakCanary.isInAnalyzerProcess(this)) {
//            return;
//        }
//        LeakCanary.install(this);

        Ihttp.getInstance().setHttpInterface(OkHttpInterface.getInstance());
        Ihttp.getInstance().setJsonInterFace(GsonInterface.getInstance());
    }
}
